/****************************************************
          File Name:34-3.c
          Author: Abby Cin
          Mail: abbytsing@gmail.com
          Created Time: Sun 31 Aug 2014 08:17:47 PM CST
*****************************************************/

#include<stdio.h>
#include<unistd.h>
#include<stdlib.h>

int main(int argc,char * argv[])
{
    if(setsid()==-1)
    {
        perror("setsid");
        exit(1);
    }

    sleep(30);

    return 0;
}
